package com.sdu.recursive;

public class TestFib {

	public static void main(String[] args) {

		System.out.println(fib(1));

		System.out.println(fib(2));

		System.out.println(fib(3));

		System.out.println(fib(4));

		System.out.println(fib(5));
	}

	public static int fib(long n) {
		if (n == 1 || n == 2) {
			return 1;
		} else {
			return fib(n - 2) + fib(n - 1);
		}
	}
}
